package cn.com.cym.gamezao.service;

import cn.com.cym.gamezao.base.BaseService;
import cn.com.cym.gamezao.entity.Dict;
import cn.com.cym.gamezao.entity.DictItem;
import org.springframework.lang.NonNull;

import java.util.List;

public interface DictItemService extends BaseService<DictItem> {

    List<DictItem> getByDict(@NonNull Dict dict);

    List<DictItem> getByDictId(@NonNull Long dictId);

    DictItem getByCode(String code);

    DictItem updateByCode(DictItem dictItem,String code);
}
